//
//  PYShowMediaCell.h
//  IHome
//
//   Created by zhujizheng on 2020/2/18.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

extern const CGFloat show_image_margin;

@class PYShowMediaCell, PYMediaInfo;
@protocol PYShowMediaCellDelegate <NSObject>

@optional
- (void)collectionViewCell:(PYShowMediaCell *)cell panGestureDidPanGesture:(UIPanGestureRecognizer *)panGesture;

- (void)singleTapGestureDidTap:(PYShowMediaCell *)cell;

- (void)longPressGestureDidPress:(PYShowMediaCell *)cell;

@end

@interface PYShowMediaCell : UICollectionViewCell

/// 图片控件
@property (nonatomic, strong, readonly) UIImageView *imgView;
/// 图片缩放控件
@property (nonatomic, strong, readonly) UIScrollView *scrollView;

@property (nonatomic, weak) id<PYShowMediaCellDelegate> delegate;

+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView indexPath:(NSIndexPath *)indexPath;

@property (nonatomic, strong) PYMediaInfo *mediaInfo;
@end

NS_ASSUME_NONNULL_END
